<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#box{
				background-color: red;
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<button id="btn">动起来</button>
		<button id="btn-stop">停止</button>
		<div id="box"></div>
		<script src="js/jquery.3.6.3.js"></script>
		<script>
			$("#btn").click(function(){
				//开始动画
				$("#box").animate({width:'200px',height:"300px"},6000)
			})
			$("#btn-stop").click(function(){
				//停止动画
				$("#box").stop()
			})
		</script>
	</body>
</html>